<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="css/style.css">
</head>
<body>
	<!-- 历史记录输出 -->
	<div class="left">
		<?php foreach ($db as $id => $d):?>
			<?php
			if(in_array($id, $_SESSION['history'])):?>
				<h3><?php echo $d['title']?></h3>
				<img src="<?php echo $d['thump']?>" alt="">	

			<?php endif;?>
			
		<?php endforeach;?>
	</div>
	
	<!-- 中部详情 -->
	<div class="middle">
		<h1><?php echo $goods['title'];?></h1>
		<img class="pic" src="<?php echo $goods['thump'];?>" alt="">
		<p class="des"><?php echo $goods['body'];?></p>
	</div>
</body>
</html>